-- GENERATED SPELL FOR [Vekh'nir Stormcaller] --


function spell0_19983(pUnit, Event) --@Hurricane,n/a--
pUnit:FullCastSpellOnTarget(32717,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19983', 10000, 1)
end

function spell1_19983(pUnit, Event) --@Lightning Tether,n/a--
pUnit:FullCastSpellOnTarget(37654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19983', 5000, 1)
end

function Sorts_19983(pUnit, Event)
local choix_sorts_19983 = math.random(0, 1)
if choix_sorts_19983 == 0 then
pUnit:RegisterEvent('spell0_19983', 1, 1)
end
if choix_sorts_19983 == 1 then
pUnit:RegisterEvent('spell1_19983', 1, 1)
end
end

function mob19983_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19983', math.random(1500, 3000), 1)
end

function mob19983_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19983_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19983_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19983, 1, 'mob19983_Action')
RegisterUnitEvent(19983, 2, 'mob19983_Leave')
RegisterUnitEvent(19983, 3, 'mob19983_Kill')
RegisterUnitEvent(19983, 4, 'mob19983_Die')
